/**
 * 
 */
package com.xpec.c4.game.utility.wordfilter.db;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.xpec.c4.db.model.basic.BasicGameModel;
import com.xpec.c4.game.utility.wordfilter.WordCompareType;

/**
 * 由 db 設定的創角關鍵字列表
 * 
 * @author TW15010
 */
@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
@Table(name = "player_name_filter")
public class PlayerNameFilterModel extends BasicGameModel {
	private static final long serialVersionUID = 8281365296259965080L;

	/**
	 * 過濾字
	 */
	private String word;

	/**
	 * 比對方式 {@link WordCompareType}
	 */
	private int compareType;

	@Column(unique = true, nullable = false)
	public String getWord() {
		return word;
	}

	public void setWord(String word) {
		this.word = word;
	}

	@Override
	public String toString() {
		return word;
	}

	public int getCompareType() {
		return compareType;
	}

	public void setCompareType(int compareType) {
		this.compareType = compareType;
	}
}
